# Docker image for springboot file run
# VERSION 0.0.1
# Author: javaboylyh
# 基础镜像使用java
FROM java:8
# 作者
MAINTAINER javaboylyh <50875895@qq.com>

VOLUME /tmp

RUN sh -c 'touch /app.jar'
# 将jar包添加到容器中并更名为app.jar
ADD ./target/spring-boot-docker-1.0-SNAPSHOT.jar app.jar
# 运行jar包

ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]